<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
  
</body>
<script>
    function com(a,b,c){
        var i=0;
        if(isNaN(a)==1||isNaN(b)==1||isNaN(a)==1){
            console.log("包含非数字类型");
            return false;
        }
        if(a>b){
            i=a;
            a=b;
            b=i;
        }
        if(a>c){
            i=a;
            a=c;
            c=i;
        }
        if(b>c){
            i=b;
            b=c;
            c=i;
        }
        console.log(a+"<"+b+"<"+c);
    }
    com("hello",10,1);
</script>
</html>